Home:ALL Converter>Many temporary UnknownHost errors when running `bundle install` on linux mint with RVM

Many temporary UnknownHost errors when running `bundle install` on linux mint with RVM

Ask Time:2015-01-23T20:45:16         Author:Rick

Json Formatter

I am running RVM on Linux Mint 17 and am hitting a recurring, random, temporary error when I bundle install:

Gem::RemoteFetcher::UnknownHostError: no such name (https://rubygems.org/gems/some_gem)

This error happens randomly. If I run bundle install again, it might succeed for the previous failure but then hit the error for a different gem farther down the Gemfile.

I am able to successfully install gems, but only after re-running the command many time.

Author:Rick,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/28110266/many-temporary-unknownhost-errors-when-running-bundle-install-on-linux-mint-wi
Stanislav Mekhonoshin :

Probably you should update your rubygems, if you are not using last version\nhttps://github.com/rubygems/rubygems/issues/762\n\nIt also can be an issue with your DNS setup, check\n\nnslookup rubygems.org\n\n\nIf it fails - it can be problem with DNS server that you are using.",
2015-01-23T15:27:29
yy